package com.sto.stoapp.dataprocess;

import com.sto.stoapp.activity.R;
import com.sto.stoapp.http.BaseMessage;
import com.sto.stoapp.status.EnumTableNames;
import com.sto.stoapp.util.UnifiedStaticType;

public class ProcessTableData {

	// 网点业务员记录查询 第一项表示显示查询名称，第二项表示对应的表名
	private final int[][] salesInquiryTableItem = new int[][] {
			{ R.string.all_statistics, 0 },
			{ R.string.receive_inquiry,
					EnumTableNames.STATUS_TABLE_SALESMAN_RECEIVE.ordinal() },
			{ R.string.sign_inquiry,
					EnumTableNames.STATUS_TABLE_SALESMAN_SIGN.ordinal() },
			{ R.string.problem_inquiry,
					EnumTableNames.STATUS_TABLE_PROBLEM.ordinal() },
			{
					R.string.extract_inquiry,
					EnumTableNames.STATUS_TABLE_SALESMAN_ORDER_EXTRACT
							.ordinal() },
			{ R.string.back_inquiry,
					EnumTableNames.STATUS_TABLE_SALESMAN_ORDER_BACK.ordinal() },
			{ R.string.service_sms_inquiry,
					EnumTableNames.STATUS_TABLE_SERVICE_SMS.ordinal() },
			{ R.string.picture_inquiry, -1 },
			{ R.string.fast_search_code, -1 }, { R.string.time_inquiry, -1 } };

	// 网点扫描员记录查询 第一项表示显示查询名称，第二项表示对应的表名
	private final int[][] scanningInquiryTableItem = new int[][] {
			{ R.string.all_statistics, 0 },
			{ R.string.receive_inquiry,
					EnumTableNames.STATUS_TABLE_SCANNING_RECEIVE.ordinal() },
			{ R.string.send_piece_inquiry,
					EnumTableNames.STATUS_TABLE_SCANNING_SENDPIECE.ordinal() },
			{ R.string.join_scan,
					EnumTableNames.STATUS_TABLE_JOIN_SCAN.ordinal() },
			{ R.string.receive_piece_inquiry,
					EnumTableNames.STATUS_TABLE_SCANNING_REACHPIECE.ordinal() },
			{ R.string.faction_piece_inquiry,
					EnumTableNames.STATUS_TABLE_SCANNING_ASSIGNPIECE.ordinal() },
			{ R.string.problem_inquiry,
					EnumTableNames.STATUS_TABLE_PROBLEM.ordinal() },
			{ R.string.stayhourse_piece_inquiry,
					EnumTableNames.STATUS_TABLE_STAY_WAREHOURSE.ordinal() },
			{ R.string.bagging_inquiry,
					EnumTableNames.STATUS_TABLE_BAGGINGADNSENDPIECE.ordinal() },
			{ R.string.loading_inquiry,
					EnumTableNames.STATUS_TABLE_LOADCAR_SENDPIECE.ordinal() },
			{ R.string.sendcar_inquiry,
					EnumTableNames.STATUS_TABLE_SEND_CAR.ordinal() },
			{ R.string.tocar_inquiry,
					EnumTableNames.STATUS_TABLE_RECEIVE_CAR.ordinal() },
			{ R.string.service_sms_inquiry,
					EnumTableNames.STATUS_TABLE_SERVICE_SMS.ordinal() },
			{ R.string.picture_inquiry, 0 }, { R.string.fast_search_code, -1 },
			{ R.string.time_inquiry, -1 } };

	// 网点业务员记录上传 第一项表示显示上传名称，第二项表示对应的表名
	private final int[][] salesUploadTableItem = new int[][] {
			{ R.string.receive_upload,
					EnumTableNames.STATUS_TABLE_SALESMAN_RECEIVE.ordinal() },
			{ R.string.sign_upload,
					EnumTableNames.STATUS_TABLE_SALESMAN_SIGN.ordinal() },
			{ R.string.problem_upload,
					EnumTableNames.STATUS_TABLE_PROBLEM.ordinal() },
			{
					R.string.extract_upload,
					EnumTableNames.STATUS_TABLE_SALESMAN_ORDER_EXTRACT
							.ordinal() },
			{ R.string.back_upload,
					EnumTableNames.STATUS_TABLE_SALESMAN_ORDER_BACK.ordinal() },
			{ R.string.service_sms_upload,
					EnumTableNames.STATUS_TABLE_SERVICE_SMS.ordinal() }, };

	// 网点扫描员记录上传 第一项表示显示上传名称，第二项表示对应的表名
	private final int[][] scanningUploadTableItem = new int[][] {
			{ R.string.receive_upload,
					EnumTableNames.STATUS_TABLE_SCANNING_RECEIVE.ordinal() },
			{ R.string.send_piece_upload,
					EnumTableNames.STATUS_TABLE_SCANNING_SENDPIECE.ordinal() },
			{ R.string.receive_piece_upload,
					EnumTableNames.STATUS_TABLE_SCANNING_REACHPIECE.ordinal() },
			{ R.string.faction_piece_upload,
					EnumTableNames.STATUS_TABLE_SCANNING_ASSIGNPIECE.ordinal() },
			{ R.string.problem_upload,
					EnumTableNames.STATUS_TABLE_PROBLEM.ordinal() },
			{ R.string.stayhourse_piece_upload,
					EnumTableNames.STATUS_TABLE_STAY_WAREHOURSE.ordinal() },
			{ R.string.bagging_upload,
					EnumTableNames.STATUS_TABLE_BAGGINGADNSENDPIECE.ordinal() },
			{ R.string.loading_upload,
					EnumTableNames.STATUS_TABLE_LOADCAR_SENDPIECE.ordinal() },
			{ R.string.sendcar_upload,
					EnumTableNames.STATUS_TABLE_SEND_CAR.ordinal() },
			{ R.string.tocar_upload,
					EnumTableNames.STATUS_TABLE_RECEIVE_CAR.ordinal() },
			{ R.string.service_sms_upload,
					EnumTableNames.STATUS_TABLE_SERVICE_SMS.ordinal() }, };

	// 网点业务员删除错扫 第一项表示显示删除名称，第二项表示对应的表名
	private final int[][] salesDeleteTableItem = new int[][] {
			{ R.string.receive_wrong_sanning,
					EnumTableNames.STATUS_TABLE_SALESMAN_RECEIVE.ordinal() },
			{ R.string.sign_wrong_sanning,
					EnumTableNames.STATUS_TABLE_SALESMAN_SIGN.ordinal() },
			{ R.string.problem_wrong_sanning,
					EnumTableNames.STATUS_TABLE_PROBLEM.ordinal() },
			{ R.string.service_sms_wrong_sanning,
					EnumTableNames.STATUS_TABLE_SERVICE_SMS.ordinal() }, };

	// 网点扫描员删除错扫 第一项表示显示删除名称，第二项表示对应的表名
	private final int[][] scanningDeleteTableItem = new int[][] {
			{ R.string.receive_wrong_sanning,
					EnumTableNames.STATUS_TABLE_SCANNING_RECEIVE.ordinal() },
			{ R.string.send_wrong_sanning,
					EnumTableNames.STATUS_TABLE_SCANNING_SENDPIECE.ordinal() },
			{ R.string.reach_wrong_sanning,
					EnumTableNames.STATUS_TABLE_SCANNING_REACHPIECE.ordinal() },
			{ R.string.assign_wrong_sanning,
					EnumTableNames.STATUS_TABLE_SCANNING_ASSIGNPIECE.ordinal() },
			{ R.string.problem_wrong_sanning,
					EnumTableNames.STATUS_TABLE_PROBLEM.ordinal() },
			{ R.string.stay_wrong_sanning,
					EnumTableNames.STATUS_TABLE_STAY_WAREHOURSE.ordinal() },
			{ R.string.bagging_wrong_sanning,
					EnumTableNames.STATUS_TABLE_BAGGINGADNSENDPIECE.ordinal() },
			{ R.string.loadcar_wrong_sanning,
					EnumTableNames.STATUS_TABLE_LOADCAR_SENDPIECE.ordinal() },
			{ R.string.sendcar_wrong_sanning,
					EnumTableNames.STATUS_TABLE_SEND_CAR.ordinal() },
			{ R.string.reachcar_wrong_sanning,
					EnumTableNames.STATUS_TABLE_RECEIVE_CAR.ordinal() },
			{ R.string.service_sms_wrong_sanning,
					EnumTableNames.STATUS_TABLE_SERVICE_SMS.ordinal() }, };

	// 管理员记录查询 第一项表示显示查询名称，第二项表示对应的表名
	private final int[][] administratorTableItem = new int[][] {
			{ R.string.all_statistics, 0 },
			{ R.string.receive_inquiry,
					EnumTableNames.STATUS_TABLE_SALESMAN_RECEIVE.ordinal() },
			{ R.string.sign_inquiry,
					EnumTableNames.STATUS_TABLE_SALESMAN_SIGN.ordinal() },
			{ R.string.problem_inquiry,
					EnumTableNames.STATUS_TABLE_PROBLEM.ordinal() },
			{
					R.string.extract_inquiry,
					EnumTableNames.STATUS_TABLE_SALESMAN_ORDER_EXTRACT
							.ordinal() },
			{ R.string.back_inquiry,
					EnumTableNames.STATUS_TABLE_SALESMAN_ORDER_BACK.ordinal() },
			{ R.string.service_sms_inquiry,
					EnumTableNames.STATUS_TABLE_SERVICE_SMS.ordinal() },
			{ R.string.receive_inquiry,
					EnumTableNames.STATUS_TABLE_SCANNING_RECEIVE.ordinal() },
			{ R.string.send_piece_inquiry,
					EnumTableNames.STATUS_TABLE_SCANNING_SENDPIECE.ordinal() },
			{ R.string.receive_piece_inquiry,
					EnumTableNames.STATUS_TABLE_SCANNING_REACHPIECE.ordinal() },
			{ R.string.faction_piece_inquiry,
					EnumTableNames.STATUS_TABLE_SCANNING_ASSIGNPIECE.ordinal() },
			{ R.string.problem_inquiry,
					EnumTableNames.STATUS_TABLE_PROBLEM.ordinal() },
			{ R.string.stayhourse_piece_inquiry,
					EnumTableNames.STATUS_TABLE_STAY_WAREHOURSE.ordinal() },
			{ R.string.bagging_inquiry,
					EnumTableNames.STATUS_TABLE_BAGGINGADNSENDPIECE.ordinal() },
			{ R.string.loading_inquiry,
					EnumTableNames.STATUS_TABLE_LOADCAR_SENDPIECE.ordinal() },
			{ R.string.sendcar_inquiry,
					EnumTableNames.STATUS_TABLE_SEND_CAR.ordinal() },
			{ R.string.tocar_inquiry,
					EnumTableNames.STATUS_TABLE_RECEIVE_CAR.ordinal() },
			{ R.string.service_sms_inquiry,
					EnumTableNames.STATUS_TABLE_SERVICE_SMS.ordinal() },
			{ R.string.fast_search_code, -1 }, { R.string.time_inquiry, -1 } };

	// 中转记录上传 第一项表示显示上传名称，第二项表示对应的表名
	private final int[][] centerUploadTableItem = new int[][] {
			{ R.string.receive_piece_upload,
					EnumTableNames.STATUS_TABLE_CENTER_REACHPIECE.ordinal() },
			{ R.string.send_piece_upload,
					EnumTableNames.STATUS_TABLE_CENTER_SENDPIECE.ordinal() },
			{ R.string.problem_upload,
					EnumTableNames.STATUS_TABLE_PROBLEM.ordinal() },
			{
					R.string.bagging_upload,
					EnumTableNames.STATUS_TABLE_CENTER_BAGGINGADNSENDPIECE
							.ordinal() },
			{
					R.string.stayhourse_piece_upload,
					EnumTableNames.STATUS_TABLE_CENTER_STAY_WAREHOURSE
							.ordinal() },
			{
					R.string.loading_upload,
					EnumTableNames.STATUS_TABLE_CENTER_LOADCAR_SENDPIECE
							.ordinal() },
			{ R.string.sendcar_upload,
					EnumTableNames.STATUS_TABLE_CENTER_SEND_CAR.ordinal() },
			{ R.string.tocar_upload,
					EnumTableNames.STATUS_TABLE_CENTER_RECEIVE_CAR.ordinal() }, };

	// 中转删除错扫 第一项表示显示删除名称，第二项表示对应的表名
	private final int[][] centerDeleteTableItem = new int[][] {
			{ R.string.reach_wrong_sanning,
					EnumTableNames.STATUS_TABLE_CENTER_REACHPIECE.ordinal() },
			{ R.string.send_wrong_sanning,
					EnumTableNames.STATUS_TABLE_CENTER_SENDPIECE.ordinal() },
			{ R.string.problem_wrong_sanning,
					EnumTableNames.STATUS_TABLE_PROBLEM.ordinal() },
			{
					R.string.bagging_wrong_sanning,
					EnumTableNames.STATUS_TABLE_CENTER_BAGGINGADNSENDPIECE
							.ordinal() },
			{
					R.string.stay_wrong_sanning,
					EnumTableNames.STATUS_TABLE_CENTER_STAY_WAREHOURSE
							.ordinal() },
			{
					R.string.loadcar_wrong_sanning,
					EnumTableNames.STATUS_TABLE_CENTER_LOADCAR_SENDPIECE
							.ordinal() },
			{ R.string.sendcar_wrong_sanning,
					EnumTableNames.STATUS_TABLE_CENTER_SEND_CAR.ordinal() },
			{ R.string.reachcar_wrong_sanning,
					EnumTableNames.STATUS_TABLE_CENTER_RECEIVE_CAR.ordinal() }, };
	// 中转记录查询 第一项表示显示查询名称，第二项表示对应的表名
	private final int[][] centerInquiryTableItem = new int[][] {
			{ R.string.all_statistics, 0 },
			{ R.string.receive_piece_inquiry,
					EnumTableNames.STATUS_TABLE_CENTER_REACHPIECE.ordinal() },
			{ R.string.send_piece_inquiry,
					EnumTableNames.STATUS_TABLE_CENTER_SENDPIECE.ordinal() },
			{ R.string.problem_inquiry,
					EnumTableNames.STATUS_TABLE_PROBLEM.ordinal() },
			{
					R.string.bagging_inquiry,
					EnumTableNames.STATUS_TABLE_CENTER_BAGGINGADNSENDPIECE
							.ordinal() },
			{
					R.string.stayhourse_piece_inquiry,
					EnumTableNames.STATUS_TABLE_CENTER_STAY_WAREHOURSE
							.ordinal() },
			{
					R.string.loading_inquiry,
					EnumTableNames.STATUS_TABLE_CENTER_LOADCAR_SENDPIECE
							.ordinal() },
			{ R.string.sendcar_inquiry,
					EnumTableNames.STATUS_TABLE_CENTER_SEND_CAR.ordinal() },
			{ R.string.tocar_inquiry,
					EnumTableNames.STATUS_TABLE_CENTER_RECEIVE_CAR.ordinal() },
			{ R.string.picture_inquiry, 0 }, { R.string.fast_search_code, -1 },
			{ R.string.time_inquiry, -1 } };

	// 航空提货员记录查询 第一项表示显示查询名称，第二项表示对应的表名
	private final int[][] aviPickerInquiryTableItem = new int[][] {
			{ R.string.all_statistics, 0 },
			{
					R.string.bag_inquire,
					EnumTableNames.STATUS_TABLE_AVIATION_PICKER_PACKET
							.ordinal() }, { R.string.cast_inquire, 0 },
			{ R.string.flight_compare, 0 }, { R.string.picture_inquiry, 0 },
			{ R.string.fast_search_code, -1 }, { R.string.time_inquiry, -1 } };

	// 航空提货员记录上传 第一项表示查询名称，第二项表示对应的表名
	private final int[][] aviPickerUploadTableItem = new int[][] { {
			R.string.bag_upload,
			EnumTableNames.STATUS_TABLE_AVIATION_PICKER_PACKET.ordinal() } };

	// 航空扫描员记录查询 第一项表示查询名称， 第二项表示对应的表名
	private final int[][] aviScannerInquiryTableItem = new int[][] {
			{ R.string.all_statistics, 0 },
			{
					R.string.to_piece,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_TO_PIECE
							.ordinal() },
			{ R.string.send_piece_inquiry,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_SEND.ordinal() },
			{ R.string.problem_inquiry,
					EnumTableNames.STATUS_TABLE_AVIATION_PROBLEM.ordinal() },
			{
					R.string.stayhourse_piece_inquiry,
					EnumTableNames.STATUS_TABLE_AVIATION_STAY_WAREHOURSE
							.ordinal() },
			{
					R.string.bag_and_send_piece_inquiry,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_PACKET_SEND
							.ordinal() },
			{
					R.string.send_bag_inquiry,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_SEND_BAG
							.ordinal() },
			/*
			 * 屏蔽到包
			 * 
			 * @modify: mgf
			 * 
			 * @date: 2014-06-05
			 */
			/*
			 * { R.string.arrived_bag_inquiry,
			 * TABLE_NAME_STATUS.STATUS_TABLE_AVIATION_SCAN_ARRIVED_BAG
			 * .ordinal() },
			 */
			{
					R.string.loadcar_send_piece_inquiry,
					EnumTableNames.STATUS_TABLE_AVIATION_LOADCAR_SENDPIECE
							.ordinal() },
			{ R.string.sendcar_inquiry,
					EnumTableNames.STATUS_TABLE_AVIATION_SEND_CAR.ordinal() },
			{ R.string.tocar_inquiry,
					EnumTableNames.STATUS_TABLE_AVIATION_RECEIVE_CAR.ordinal() },
			{ R.string.picture_inquiry, 0 }, { R.string.fast_search_code, -1 },
			{ R.string.time_inquiry, -1 } };

	// 航空扫描员记录上传 第一项表示查询名称， 第二项表示对应的表名
	private final int[][] aviScannerUploadTableItem = new int[][] {
			{
					R.string.receive_piece_upload,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_TO_PIECE
							.ordinal() },
			{ R.string.send_piece_upload,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_SEND.ordinal() },
			{ R.string.problem_upload,
					EnumTableNames.STATUS_TABLE_AVIATION_PROBLEM.ordinal() },
			{
					R.string.stayhourse_piece_upload,
					EnumTableNames.STATUS_TABLE_AVIATION_STAY_WAREHOURSE
							.ordinal() },
			{
					R.string.bag_and_send_piece_upload,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_PACKET_SEND
							.ordinal() },
			{
					R.string.send_bag_upload,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_SEND_BAG
							.ordinal() },
			/*
			 * 屏蔽到包
			 * 
			 * @modify: mgf
			 * 
			 * @date: 2014-06-05
			 */
			/*
			 * { R.string.arrived_bag_upload,
			 * TABLE_NAME_STATUS.STATUS_TABLE_AVIATION_SCAN_ARRIVED_BAG
			 * .ordinal() },
			 */
			{
					R.string.loadcar_send_piece_upload,
					EnumTableNames.STATUS_TABLE_AVIATION_LOADCAR_SENDPIECE
							.ordinal() },
			{ R.string.sendcar_upload,
					EnumTableNames.STATUS_TABLE_AVIATION_SEND_CAR.ordinal() },
			{ R.string.tocar_upload,
					EnumTableNames.STATUS_TABLE_AVIATION_RECEIVE_CAR.ordinal() }, };

	// 航空扫描员删除错扫 第一项表示显示删除名称，第二项表示对应的表名
	private final int[][] aviScannerDeleteTableItem = new int[][] {
			{
					R.string.reach_wrong_sanning,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_TO_PIECE
							.ordinal() },
			{ R.string.send_wrong_sanning,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_SEND.ordinal() },
			{ R.string.problem_wrong_sanning,
					EnumTableNames.STATUS_TABLE_AVIATION_PROBLEM.ordinal() },
			{
					R.string.stay_wrong_sanning,
					EnumTableNames.STATUS_TABLE_AVIATION_STAY_WAREHOURSE
							.ordinal() },
			{
					R.string.bag_and_send_piece_wrong,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_PACKET_SEND
							.ordinal() },
			{
					R.string.send_bag_wrong,
					EnumTableNames.STATUS_TABLE_AVIATION_SCAN_SEND_BAG
							.ordinal() },
			/*
			 * 屏蔽到包
			 * 
			 * @modify: mgf
			 * 
			 * @date: 2014-06-05
			 */
			/*
			 * { R.string.arrived_bag_wrong,
			 * TABLE_NAME_STATUS.STATUS_TABLE_AVIATION_SCAN_ARRIVED_BAG
			 * .ordinal() },
			 */
			{
					R.string.loadcar_send_piece_wrong,
					EnumTableNames.STATUS_TABLE_AVIATION_LOADCAR_SENDPIECE
							.ordinal() },
			{ R.string.sendcar_wrong_sanning,
					EnumTableNames.STATUS_TABLE_AVIATION_SEND_CAR.ordinal() },
			{ R.string.reachcar_wrong_sanning,
					EnumTableNames.STATUS_TABLE_AVIATION_RECEIVE_CAR.ordinal() }, };

	/**
	 * 获取上传数据
	 * 
	 * @param itme
	 *            显示内容项
	 * @param row
	 *            获取表名
	 * @return
	 */
	public int getProcessUploadData(int itme, int row) {
		int getdata = -1;

		if (UnifiedStaticType.loginType.equals(BaseMessage.SALES_VERSION)) {
			getdata = salesUploadTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.SCANNER_VERSION)) {
			getdata = scanningUploadTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.CENTER_VERSION)) {
			getdata = centerUploadTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.AVIATION_T_VERSION)) {
			getdata = aviPickerUploadTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.AVIATION_A_VERSION)) {
			getdata = aviScannerUploadTableItem[itme][row];
		}
		return getdata;
	}

	/**
	 * 获取上传最大项
	 * 
	 * @return
	 */
	public int getUploadMaxItem() {
		int maxItem = 0;

		if (UnifiedStaticType.loginType.equals(BaseMessage.SALES_VERSION)) {
			maxItem = salesUploadTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.SCANNER_VERSION)) {
			maxItem = scanningUploadTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.CENTER_VERSION)) {
			maxItem = centerUploadTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.AVIATION_T_VERSION)) {
			maxItem = aviPickerUploadTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.AVIATION_A_VERSION)) {
			maxItem = aviScannerUploadTableItem.length;
		}
		return maxItem;
	}

	/**
	 * 获取删除数据
	 * 
	 * @param itme
	 *            显示内容项
	 * @param row
	 *            获取表名
	 * @return
	 */
	public int getProcessDeleteData(int itme, int row) {
		int getdata = -1;

		if (UnifiedStaticType.loginType.equals(BaseMessage.SALES_VERSION)) {
			getdata = salesDeleteTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.SCANNER_VERSION)) {
			getdata = scanningDeleteTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.CENTER_VERSION)) {
			getdata = centerDeleteTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.AVIATION_A_VERSION)) {
			getdata = aviScannerDeleteTableItem[itme][row];
		}
		return getdata;
	}

	/**
	 * 获取删除最大项
	 * 
	 * @return
	 */
	public int getDeleteMaxItem() {
		int maxItem = 0;

		if (UnifiedStaticType.loginType.equals(BaseMessage.SALES_VERSION)) {
			maxItem = salesDeleteTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.SCANNER_VERSION)) {
			maxItem = scanningDeleteTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.CENTER_VERSION)) {
			maxItem = centerDeleteTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.AVIATION_A_VERSION)) {
			maxItem = aviScannerDeleteTableItem.length;
		}
		return maxItem;
	}

	/**
	 * 获取查询数据
	 * 
	 * @param itme
	 *            显示内容项
	 * @param row
	 *            获取表名
	 * @return
	 */
	public int getProcessInquiryData(int itme, int row) {
		int getdata = -1;

		if (UnifiedStaticType.loginType.equals(BaseMessage.SALES_VERSION)) {
			getdata = salesInquiryTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.SCANNER_VERSION)) {
			getdata = scanningInquiryTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.ADMIN_VERSION)) {
			getdata = administratorTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.CENTER_VERSION)) {
			getdata = centerInquiryTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.AVIATION_T_VERSION)) {
			getdata = aviPickerInquiryTableItem[itme][row];
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.AVIATION_A_VERSION)) {
			getdata = aviScannerInquiryTableItem[itme][row];
		}

		return getdata;
	}

	/**
	 * 获取查询最大项
	 * 
	 * @return
	 */
	public int getInquiryMaxItem() {
		int maxItem = 0;

		if (UnifiedStaticType.loginType.equals(BaseMessage.SALES_VERSION)) {
			maxItem = salesInquiryTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.SCANNER_VERSION)) {
			maxItem = scanningInquiryTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.ADMIN_VERSION)) {
			maxItem = administratorTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.CENTER_VERSION)) {
			maxItem = centerInquiryTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.AVIATION_T_VERSION)) {
			maxItem = aviPickerInquiryTableItem.length;
		} else if (UnifiedStaticType.loginType
				.equals(BaseMessage.AVIATION_A_VERSION)) {
			maxItem = aviScannerInquiryTableItem.length;
		}
		return maxItem;
	}

}
